package com.neuronrobotics.replicator.gui.preview.android;

import com.neuronrobotics.replicator.gui.preview.controller.DefaultGeneralCameraController;
import com.neuronrobotics.replicator.gui.preview.controller.DefaultGeneralSTLTransformHelper;
import com.neuronrobotics.replicator.gui.preview.controller.DefaultSTLPreviewController;
import com.neuronrobotics.replicator.gui.preview.model.STLWorkspaceModel;

public class STLPreviewAndroidController extends DefaultSTLPreviewController {

	public STLPreviewAndroidController(STLPreviewViewAndroid theView, STLWorkspaceModel theModel){
		super();
		theWorkspaceView = theView;
		theWorkspaceModel = theModel;
		
		theTransformHelper = new DefaultGeneralSTLTransformHelper();
		theCameraController = new DefaultGeneralCameraController(theView);
		theMouseController = new STLPreviewTouchController(theView, theModel,theTransformHelper, theCameraController);
		
	}

	public void setModel(STLWorkspaceModel theModel) {
		theWorkspaceModel = theModel;
		theMouseController.setModel(theModel);
		//super.placeAllObjectsOnWorkspace();
	}

}
